
import { Module } from '@nestjs/common';
import { Util } from '@/common/util/util.service';
import { BaseDao } from '@/common/baseDao/base.service';
// 全局拦截 全局守卫
import { APP_INTERCEPTOR, APP_GUARD } from '@nestjs/core';
// 日志
import { LoggingInterceptor } from '@/common/logger/Logging.interceptor';
// token认证
import { AuthGuard } from '@/common/auth/auth.guard'
// jwt模块
import { JwtModule } from './common/jwt/jwt.module'
@Module({
  imports: [JwtModule],
  providers: [Util, BaseDao,
    {
        provide: APP_INTERCEPTOR,
        useClass: LoggingInterceptor,
      },
      {
        provide: APP_GUARD,
        useClass: AuthGuard
      },
  ],
  exports: [Util, BaseDao,JwtModule],
})
export class SharedModule {}